package org.luckyjourney.entity.consultants.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RetrievePWDTO implements Serializable {

    @ApiModelProperty("注解id")
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "请选择要修改的用户")
    private Long id;

    @NotBlank(message = "手机号不能为空")
    String phone;

    @NotNull(message = "code不能为空")
    String code;

    @NotBlank(message = "新密码不能为空")
    String newPassword;
}
